<?php
session_start();
if(isset($_SESSION["login"]) && $_SESSION["login"]=="yes" )
{
	header("Location: http://localhost/bs/start.php");
}
else
{
?>
<html>
<title>Business Soluton | Rajlaxmi Cotton Mills</title>
<link href="style.css" rel="stylesheet" type="text/css" /><body>
<h2 align="center">Rajlaxmi Cotton Mills</h2>
<a href="http://localhost/bs/">Home</a>
<h3>User Authentication</h3>
<?php
if(isset($_SESSION["tresspass"]) && $_SESSION["tresspass"]=="yes" )
{
	unset($_SESSION["tresspass"]);
	echo"<h3>Invalid Access Try</h3>";
}

?>
<form name="authentication" action="check.php" method="post">
<table class="main">
<tr><td><label>User Name</label></td><td><input type="text" name="user" /></td></tr>
<tr><td><label>Password</label></td><td><input type="password" name="pass" /></td></tr>
<tr><td><label></label></td><td><input type="submit" value="Sign In" /></td></tr>
</table>
</form>
<?php
}
include_once($_SERVER['DOCUMENT_ROOT'].'/bs/include/footer.inc');
?>
